<?php if(!defined('BASEPATH')) exit('No direct script access allowed');?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="<?php echo base_url()?>theme/default/css/common.css" rel="stylesheet" type="text/css">
<script>
var common_getarea  = "<?php echo site_url('common/getarea')?>";
var common_gettrade = "<?php echo site_url('common/gettrade')?>";
</script>
<script language="javascript" src="<?php echo base_url()?>theme/default/Js/ajax.js"></script>
<script language="javascript" src="<?php echo base_url()?>theme/default/Js/Common.js"></script>
<script language="javascript" src="<?php echo base_url()?>theme/default/Js/jquery.min.js"></script>
<script language="javascript" src="<?php echo base_url()?>theme/default/Js/tips.js"></script>
<script language="javascript" src="<?php echo base_url()?>theme/default/Js/Float.js"></script>
<script src="<?php echo base_url()?>theme/default/js/jquery.artDialog.js?skin=default"></script>
<script src="<?php echo base_url()?>theme/default/js/iframeTools.js"></script>
<!--选项按钮美化-->
<link rel="stylesheet" href="<?php echo base_url()?>theme/default/css/jquery-labelauty.css" />
</head>
<body> 
 
 <span class="MenuboxS">
 <ul>
 <li class="hover"><span><a href="<?php echo site_url('export/client')?>">客户列表</a></span></li>
 <li ><span><a href="<?php echo site_url('export/records')?>">跟单记录</a></span></li>
 <li ><span><a href="<?php echo site_url('export/order')?>">订单记录</a></span></li>
 <li ><span><a href="<?php echo site_url('export/hetong')?>">合同记录</a></span></li>
 <li ><span><a href="<?php echo site_url('export/service')?>">售后记录</a></span></li>
 <li ><span><a href="<?php echo site_url('export/expense')?>">收支记录</a></span></li>
 </ul>
 </span>

 <table width="100%" border="0" cellspacing="0" cellpadding="0">
 <tr>
 <td valign="top" class="td_n pd10"> 
 <table width="100%" border="0" cellspacing="0" cellpadding="0" CLASS="table_1">
 <tr class="tr_t"> 
 <td class="td_l_l" COLSPAN="6"><B>按条件筛选</B></td>
 </tr>
 </table>
 <form name="searchForm" action="?Action=KehutoExcel" method="post">
 <table width="100%" border="0" cellspacing="0" cellpadding="0" CLASS="table_1">
 <col width="100" /><col width="220" /><col width="100" />
 <tr>
 <td class="td_l_c title" style="border-top:0;">客户类型</td>
 <td class="td_r_l" style="border-top:0;"><select name="Type" id="Select_Type"><option value="">请选择</option>
 <?php foreach($select_type as $arr=>$row) {?>
 <option value="<?php echo $row['name']?>"><?php echo $row['name']?></option>
 <?php }?>
 </select></td>
 <td class="td_l_c title" style="border-top:0;">所在地区</td>
 <td class="td_r_l" style="border-top:0;">
 <select name="Area" class="int" onChange="getArea(this.options[this.selectedIndex].id);">
 <option value="">请选择</option>
 <?php foreach($select_area as $arr=>$row) {?>
 <option value="<?php echo $row['name']?>" id="<?php echo $row['id']?>"><?php echo $row['name']?></option>
 <?php }?>
  
 
 </select> 
 <span id="Squarediv"  style="margin-left:10px;padding:0;">
 <select name="Square" class="int">
 <option value="">未选择大类</option>
 </select>
 
 </span>　
 <input name="Square" type="hidden" id="Square" class="int">
 </td>
 </tr>
 <tr>
 <td class="td_l_c title">客户来源</td>
 <td class="td_r_l"> <select name="Source" id="Select_Source"><option value="">请选择</option>
 <?php foreach($select_source as $arr=>$row) {?>
 <option value="<?php echo $row['name']?>"><?php echo $row['name']?></option>
 <?php }?>
 
 </select></td>
 <td class="td_l_c title">商品大类</td>
 <td class="td_r_l">
 <select name="Trade" class="int" onChange="getTrade(this.options[this.selectedIndex].id);">
 <option value="">请选择</option>
 <?php foreach($select_trade as $arr=>$row) {?>
 <option value="<?php echo $row['name']?>" id="<?php echo $row['id']?>"><?php echo $row['name']?></option>
 <?php }?>
 </select> 
 <span id="Stradediv"  style="margin-left:10px;padding:0;">
 <select name="Strade" class="int">
 <option value="">未选择大类</option>
 </select>
 </span>
 <input name="Strade" type="hidden" id="Strade" class="int">
 </td>
 </tr>
 <tr>
 <td class="td_l_c title">客户级别</td>
 <td class="td_r_l"> <select name="Start" id="Select_Star"><option value="">请选择</option>
 <?php foreach($select_star as $arr=>$row) {?>
 <option value="<?php echo $row['name']?>"><?php echo $row['name']?></option>
 <?php }?>
 </select></td>
 <td class="td_l_c title">录入时间</td>
 <td class="td_r_l"> <input name="TimeBegin" type="text" id="TimeBegin" class="int Wdate" style="width:100px;" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" />&nbsp;~&nbsp;<input name="TimeEnd" type="text" id="TimeEnd" class="int Wdate" style="width:100px;" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" /></td>
 </tr>
 <tr>
 <td class="td_l_c title">业务员</td>
 <td class="td_r_l"><select name='jinke_user' class='int'>
 <option value="">请选择</option>
 <?php foreach($select_user as $arr=>$row) {?>
 <option value="<?php echo $row['name']?>">
 <?php echo $row['name']?></option>
 <?php }?>
 </select></td>
 <td class="td_l_c title">最后更新</td>
 <td class="td_r_l"> <input name="ETimeBegin" type="text" id="ETimeBegin" class="int Wdate" style="width:100px;" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" />&nbsp;~&nbsp;<input name="ETimeEnd" type="text" id="ETimeEnd" class="int Wdate" style="width:100px;" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" /></td>
 </tr>
 <tr>
 <td class="td_l_c title">导出项目</td>
 <td class="td_r_l" colspan=3 style="padding:5px 10px;">
 <input class="noborder" data-labelauty="编号" type="checkbox" name="Exportitem1" value="1" checked>
 <input class="noborder" data-labelauty="录入时间" type="checkbox" name="Exportitem2" value="1" checked>
 <input class="noborder" data-labelauty="最后更新" type="checkbox" name="Exportitem3" value="1" checked>
 <input class="noborder" data-labelauty="客户名称" type="checkbox" name="Exportitem4" value="1" checked>
 <input class="noborder" data-labelauty="详细地址" type="checkbox" name="Exportitem5" value="1" checked>
 <input class="noborder" data-labelauty="联系QQ" type="checkbox" name="Exportitem6" value="1" checked>
 <input class="noborder" data-labelauty="所属行业" type="checkbox" name="Exportitem7" value="1" checked>
 <input class="noborder" data-labelauty="公司网址" type="checkbox" name="Exportitem8" value="1" checked>
 <input class="noborder" data-labelauty="电子邮件" type="checkbox" name="Exportitem9" value="1" checked>
 <input class="noborder" data-labelauty="商品大类" type="checkbox" name="Exportitem10" value="1" checked>
 <input class="noborder" data-labelauty="客户类型" type="checkbox" name="Exportitem11" value="1" checked>
 <input class="noborder" data-labelauty="客户级别" type="checkbox" name="Exportitem12" value="1" checked>
 <input class="noborder" data-labelauty="客户来源" type="checkbox" name="Exportitem13" value="1" checked>
 <input class="noborder" data-labelauty="客户类别" type="checkbox" name="Exportitem14" value="1" checked>
 <input class="noborder" data-labelauty="备注" type="checkbox" name="Exportitem15" value="1" checked>
 <input class="noborder" data-labelauty="部门" type="checkbox" name="Exportitem16" value="1" checked>
 <input class="noborder" data-labelauty="业务员" type="checkbox" name="Exportitem17" value="1" checked>
 <input class="noborder" data-labelauty="联 系 人" type="checkbox" name="Exportitem18" value="1" checked>
 <input class="noborder" data-labelauty="职位" type="checkbox" name="Exportitem19" value="1" checked>
 <input class="noborder" data-labelauty="手机号码" type="checkbox" name="Exportitem20" value="1" checked>
 <input class="noborder" data-labelauty="下次跟进" type="checkbox" name="Exportitem21" value="1" checked>
 <input class="noborder" data-labelauty="交付订单" type="checkbox" name="Exportitem22" value="1" checked>
 <input class="noborder" data-labelauty="合同到期" type="checkbox" name="Exportitem23" value="1" checked>
 </td>
 </tr>
 </table> 
 <table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:10px;">
 <tr>
 <td>
 <input type="submit" name="Submit" class="btn2 btnbaoc" value=" 导出 ">　
<!--<input type="button" class="btn2 btnxiaz" value=" 下载文件 "  onclick="userfile_guanli()"/>　
<script>function userfile_guanli() {$.dialog.open('filement.asp', {title: '文件管理', width:1000, height: 520,fixed: true}); };</script>
-->
 
 
 <input type="button" class="btn2 btnguanb" value="清空条件" onClick=window.location.href="?action=killSession&otype=Kehu" />　
 </td>
 </tr>
 </table> 
 </form> 
 </td> 
 </tr>
 </table> 
</body>
</html>
<script src="<?php echo base_url()?>theme/default/WdatePicker.js"></script>

<!--选项按钮美化-->
<script type="text/javascript" src="<?php echo base_url()?>theme/default/js/jquery-labelauty.js"></script>
<script type="text/javascript">
$(function(){
 $(':input').labelauty();
});
</script>
